<?php
namespace RTSCraft\MainBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * @ORM\Entity
 * @ORM\Table(name="Version")
 * @ORM\Entity(repositoryClass="RTSCraft\MainBundle\Repository\VersionRepository")
 */
class Version
{
  /**
   * @ORM\Id
   * @ORM\Column(type="integer")
   * @ORM\GeneratedValue(strategy="AUTO")
   */
  protected $id;

  /**
   * @ORM\ManyToOne(targetEntity="Article", inversedBy="versions")
   * @ORM\JoinColumn(name="article_id", referencedColumnName="id")
   */
  protected $article_id;

  /**
   * @ORM\Column(type="string", length=8)
   */
  protected $num_version;

  /**
   * @ORM\Column(type="string", length=64)
   */
  protected $author;

  /**
   * @ORM\Column(type="string", length=16)
   */
  protected $ip;

  /**
   * @ORM\Column(type="datetime")
   */
  protected $date;

  /**
   * @ORM\Column(type="text")
   */
  protected $text;

    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set num_version
     *
     * @param string $numVersion
     */
    public function setNumVersion($numVersion)
    {
        $this->num_version = $numVersion;
    }

    /**
     * Get num_version
     *
     * @return string 
     */
    public function getNumVersion()
    {
        return $this->num_version;
    }

    /**
     * Set author
     *
     * @param string $author
     */
    public function setAuthor($author)
    {
        $this->author = $author;
    }

    /**
     * Get author
     *
     * @return string 
     */
    public function getAuthor()
    {
        return $this->author;
    }

    /**
     * Set ip
     *
     * @param string $ip
     */
    public function setIp($ip)
    {
        $this->ip = $ip;
    }

    /**
     * Get ip
     *
     * @return string 
     */
    public function getIp()
    {
        return $this->ip;
    }

    /**
     * Set date
     *
     * @param datetime $date
     */
    public function setDate($date)
    {
        $this->date = $date;
    }

    /**
     * Get date
     *
     * @return datetime 
     */
    public function getDate()
    {
        return $this->date;
    }

    /**
     * Set text
     *
     * @param text $text
     */
    public function setText($text)
    {
        $this->text = $text;
    }

    /**
     * Get text
     *
     * @return text 
     */
    public function getText()
    {
        return $this->text;
    }

    /**
     * Set article_id
     *
     * @param RTSCraft\MainBundle\Entity\Article $articleId
     */
    public function setArticleId(\RTSCraft\MainBundle\Entity\Article $articleId)
    {
        $this->article_id = $articleId;
    }

    /**
     * Get article_id
     *
     * @return RTSCraft\MainBundle\Entity\Article 
     */
    public function getArticleId()
    {
        return $this->article_id;
    }
}